package za.org.jcicada.datastore.impl;

import java.util.Date;
import java.util.List;

import za.org.jcicada.datastore.IDataStoreClient;
import za.org.jcicada.genss.messages.Result;
import za.org.jcicada.genss.sensor.ISensorValue;
import za.org.jcicada.genss.sensor.SensorURN;
import za.org.jcicada.genss.sensor.impl.SensorStatusValue;

public class StubDataStoreClient implements IDataStoreClient {

	public boolean disconnected = false;
	public Result result;
	public SensorURN sensorURN;
	public Date from;
	public Date to;
	public List<ISensorValue> values;
	public List<SensorStatusValue> statusValues;
	
	public void informDisconnect() {
		disconnected = true;
	}

	public void replySensorHistory(Result result, SensorURN sensorURN, Date from, Date to, List<ISensorValue> values) {
		this.result = result;
		this.sensorURN = sensorURN;
		this.from = from;
		this.to = to;
		this.values = values;
	}
	
	public void replyStatusHistory(Result result, SensorURN sensorURN, Date from, Date to, List<SensorStatusValue> values) {
		this.result = result;
		this.sensorURN = sensorURN;
		this.from = from;
		this.to = to;
		this.statusValues = values;
	}

}
